﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace WJP.WPF.Shell
{
    /// <summary>
    /// 客户端App运行时接口
    /// </summary>
    public interface IClientAppRuntime
    {
        /// <summary>
        /// 应用程序关闭的模式
        /// </summary>
        ShutdownMode ShutdownMode { get; set; }

        /// <summary>
        /// 应用程序的主窗体
        /// </summary>
        Window MainWindow { get; set; }

        /// <summary>
        /// 关闭应用程序
        /// </summary>
        void Shutdown();

        /// <summary>
        /// 应用程序启动时发生此事件
        /// </summary>
        event StartupEventHandler Startup;

        /// <summary>
        /// 应用程序关闭时发生此事件
        /// </summary>
        event ExitEventHandler Exit;
    }
}
